package com.xiaoxin.o2o.entity;

import java.util.Date;

/**
 * 2019/5/4
 */
public class PersonInfo {

    // ↓用户ID
    private Long userId;
    // ↓用户名
    private String name;
    // ↓头像地址
    private String profileImg;
    // ↓邮箱
    private String email;
    // ↓性别
    private String gender;
    // ↓禁用状态
    private Integer enableStatus;
    // ↓1.顾客 2.店家 3.超级管理员
    private Integer userType;
    // ↓创建时间
    private Date createTime;
    // ↓修改时间
    private Date lastEditTime;

    // get & set & toString方法 & 无参构造方法 & 有参构造方法

    public PersonInfo() {
        super();
    }

    public PersonInfo(Long userId,
                      String name,
                      String profileImg,
                      String email,
                      String gender,
                      Integer enableStatus,
                      Integer userType,
                      Date createTime,
                      Date lastEditTime) {
        this.userId = userId;
        this.name = name;
        this.profileImg = profileImg;
        this.email = email;
        this.gender = gender;
        this.enableStatus = enableStatus;
        this.userType = userType;
        this.createTime = createTime;
        this.lastEditTime = lastEditTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProfileImg() {
        return profileImg;
    }

    public void setProfileImg(String profileImg) {
        this.profileImg = profileImg;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(Integer enableStatus) {
        this.enableStatus = enableStatus;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastEditTime() {
        return lastEditTime;
    }

    public void setLastEditTime(Date lastEditTime) {
        this.lastEditTime = lastEditTime;
    }

    @Override
    public String toString() {
        return "PersonInfo{" +
                "userId=" + userId +
                ", name='" + name + '\'' +
                ", profileImg='" + profileImg + '\'' +
                ", email='" + email + '\'' +
                ", gender='" + gender + '\'' +
                ", enableStatus=" + enableStatus +
                ", userType=" + userType +
                ", createTime=" + createTime +
                ", lastEditTime=" + lastEditTime +
                '}';
    }
}
